//
//  PDFDocumentPreviewView.h
//  Digital Seamonsters
//
//  Created by Adam Cue on 2/6/11.
//  Copyright Adam Cue 2011.
//
//  This program is licensed and distributed under the terms of the GNU General Public License.  
//	The text for the license can be found in the license.txt file in this project.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "AsyncImageView.h"

@protocol PDFDocumentPreviewViewDelegate
- (void)selected:(int)index withImage:(UIImage *)selectedImage;
- (void)deleted:(int)index;
- (void)shaking;
@end


@interface PDFDocumentPreviewView : AsyncImageView <UIAlertViewDelegate>{
	UITapGestureRecognizer * _tapGesture;
	UILongPressGestureRecognizer * _longPressGesture;
	id <PDFDocumentPreviewViewDelegate> delegate;
	int index;
	BOOL saved;
}

#pragma mark ExternalMethods
- (id)initWithFrame:(CGRect)frame index:(int)selectedIndex;
- (void)showCloseButton;
- (void)doneShaking;

@property(nonatomic, retain) UITapGestureRecognizer * tapGesture;
@property(nonatomic, retain) UILongPressGestureRecognizer * longPressGesture;
@property(nonatomic, assign) id <PDFDocumentPreviewViewDelegate> delegate;
@property int index;
@property BOOL saved;
@end
